<!DOCTYPE html>
<html lang="zh"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>加入购物车成功</title>
    <link href="/css/init.css"  rel="stylesheet"/>
    <link rel="stylesheet" href="/css/add_car.css">
    <link href="/css/Navigation_bar.css" rel="stylesheet" type="text/css">
</head>
<body>
<div th:insert="~{Navigation_bar :: top_nav}"></div>

<div class="head w">
    <img src="/images/car_logo.png"><span>购物车</span>
</div>
<div class="item w clearFloat">
    <div class="car_image">
        <a href="javascript:;">
            <img th:src="${car.commodity.images}" src="/images/good3.jpg"/>
        </a>
        <div><span>[[${car.commodity.title}]]</span></div>
    </div>
    <div class="car_info">
        <span>已添加商品：数量：[[${car?.count }]]</span>
    </div>
    <div class="car_btn">
        <div class="success_info">
            <span>已成功加入购物车</span>
        </div>
        <div class="success_btn">
            <span>小计：</span>
            <i>￥[[${car.subtotal}]]</i>
            <div class="clearFloat">
                <a href="javascript:;" th:href="@{/commodity/commodity_info/{id}(id = ${car.commodity.cid})}">返回商品详情页</a>
                <a href="/car/showCar">去购物车结算</a>
            </div>
        </div>
    </div>
</div>
</body>
</html>